From: Cosimo Cecchi Date: Fri, 13 Jul 2012 00:01:51 +0000 (-0400) Subject: global: don't run a garbage collection on tweeners end X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6342 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6f605598de1eb4361ef912e85edb27a8b7b96b21;p=gnome-shell.git global: don't run a garbage collection on tweeners end This currently causes the shell to freeze very often in a thread deadlock, and the gjs garbage collector behavior is currently getting fixed at the right level in gjs itself. https://bugzilla.gnome.org/show_bug.cgi?id=679832 --- diff --git a/src/shell-global.c b/src/shell-global.c index bb32a01c0..28127ab34 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -1482,13 +1482,6 @@ run_leisure_functions (gpointer data) if (global->work_count > 0) return FALSE; - /* Previously we called gjs_maybe_gc(). However, it simply doesn't - * trigger often enough. Garbage collection is very fast here, so - * let's just aggressively GC. This will help avoid both heap - * fragmentation, and the GC kicking in when we don't want it to. - */ - gjs_context_gc (global->js_context); - /* No leisure closures, so we are done */ if (global->leisure_closures == NULL) return FALSE;